<template>
  <div id="RealTime">
    <el-row :gutter="20">
      <el-col :span="12">
        <el-card>
          <el-tag class="camera-number">1号摄像头</el-tag>
          <el-image :src="realTimeImg" />
        </el-card>
      </el-col>
      <el-col :span="12">
        <el-card>
          <el-tag class="camera-number">2号视频</el-tag>
          <el-image v-if="realTimeImg2.length > 0" :src="realTimeImg2" />
          <el-empty v-else />
        </el-card>
      </el-col>
    </el-row>
    <el-row :gutter="20" style="margin-top: 20px">
      <el-col :span="12">
        <el-card>
          <el-tag class="camera-number">3号摄像头</el-tag>
          <el-image v-if="realTimeImg3.length > 0" :src="realTimeImg3" />
          <el-empty v-else />
        </el-card>
      </el-col>
      <el-col :span="12">
        <el-card>
          <el-tag class="camera-number">4号摄像头</el-tag>
          <el-image v-if="realTimeImg4.length > 0" :src="realTimeImg4" />
          <el-empty v-else />
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>

export default {
  name: 'RealTime',
  props: {
    realTimeImg: {
      type: String,
      default: '',
      require: true
    },
    realTimeImg2: {
      type: String,
      default: ''
    },
    realTimeImg3: {
      type: String,
      default: ''
    },
    realTimeImg4: {
      type: String,
      default: ''
    },
    border: {
      type: Boolean,
      default: false
    },
    allPeople: {
      type: Number,
      default: 0
    }
  }
}
</script>

<style scoped>
#RealTime{
  padding: 20px;
}
.camera-number{
  margin-bottom: 10px;
}
</style>
